package cn.lhf.myblog;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class MyBlogApplication {
    private static ConfigurableApplicationContext context;

    static {
        com.mysql.jdbc.Driver.class.getName();
    }

    public static ConfigurableApplicationContext getInstance() {
        return context;
    }

    public static void main(String[] args) {
        context = SpringApplication.run(MyBlogApplication.class, args);
    }

}
